<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <title>Pizza</title>
  <link rel="stylesheet" href="pizza/css/layout.css?_t=1509687675000">
</head>
<body>
<script type="text/javascript" src="//static.xinhuaapp.com/js/jquery-1.11.0-min.js"></script>
<script type="text/javascript" src="//static.xinhuaapp.com/js/juicer-min.js"></script>
<script type="text/javascript" src="pizza/js/pizza.js?_t=1510649614000"></script>
<script type="text/javascript" src="pizza/js/pizzaform.js?_t=1509687675000"></script>
<script type="text/javascript">
document.title = 'Pizza V' + pizzaConfig['version'];
var loginData = {
  'logo': 'static/img/logo.png',
  'field': ['userName', 'userPwd', 'submit'],
  'copy': '版权所有 &copy 浙江新移传媒股份有限公司'
};
pizzaCmd.login(loginData, function(){
  var fieldDict = {
    "userName": { // 用户名
      "type": "text",
      "required": true,
      "minlength": 4,
      "maxlength": 32,
      "placeholder": '请输入用户名',
      "errorMsg": '用户名由4-32位字符组成',
      "requiredMsg": '请输入用户名'
    },
    "userPwd": { // 密码
      "type": "password",
      "required": true,
      "minlength": 4,
      "maxlength": 32,
      "placeholder": '请输入密码',
      "errorMsg": '输入的密码错误，请重新输入',
      "requiredMsg": '请输入密码'
    }
  };

  // 渲染登录表单
  var loginTplform = new pizzaCmd.pizzaform('j-loginform', fieldDict);
  loginTplform.render(function (formField) {
    // console.log(formField);
  }, function (result) {
    //console.log(result);
    return false;
  });
});
</script>
</body>
</html>